<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s"  uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type" />
    <title>网站标题</title>
    <meta name="keywords" content="keyword ..." />
    <meta name="Description" content="description ..." />
    <!--<link href="favicon.ico" rel="shortcut icon" />-->
    <link href="css/global.css" rel="stylesheet" type="text/css" />
    <link href="css/shops.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header">
 <jsp:include page="include/header.jsp" />
</div>
<div id="maincontent">  
  <div id="bottomcontent">    
    <div id="leftcontent">
     <div id="site"><a href="#">全部微商家</a><span>&gt;</span><label>美食</label></div>
     <div id="searchcondition">
     <dl>
          <dt>分类：</dt>
          <dd><a href="#" class="hover">全部</a><a href="#">笔</a><a href="#">笔记本</a><a href="#">笔记本</a><a href="#">卡片</a><a href="#">全部</a><a href="#">笔</a><a href="#">笔记本</a><a href="#">卡片</a>
          <div class="more">更多</div>
          <div class="none"><a href="#">笔</a><a href="#">笔记本</a><a href="#">卡片</a><a href="#">笔</a><a href="#">笔记本</a><a href="#">卡片</a><a href="#">笔</a><a href="#">笔记本</a><a href="#">卡片</a><a href="#">笔</a><a href="#">笔记本</a><a href="#">卡片</a></div>
          </dd>
        </dl>
        <dl>
          <dt>商圈：</dt>
          <dd><a href="#" class="hover">全部</a><a href="#">笔</a><a href="#">笔记本</a><a href="#">笔记本</a><a href="#">卡片</a><a href="#">全部</a><a href="#">笔</a><a href="#">笔记本</a><a href="#">卡片</a>
          <div class="more">更多</div>
          <div class="none"><a href="#">笔</a><a href="#">笔记本</a><a href="#">卡片</a><a href="#">笔</a><a href="#">笔记本</a><a href="#">卡片</a><a href="#">笔</a><a href="#">笔记本</a><a href="#">卡片</a><a href="#">笔</a><a href="#">笔记本</a><a href="#">卡片</a></div>
          </dd>
        </dl>
     </div>
     <div id="shoplist">
       <div class="title">排序：<select class="select"><option>&nbsp;默认排序&nbsp;</option><option>&nbsp;热门程度由高到低&nbsp;</option><option>&nbsp;可兑换商品&nbsp;</option></select>
       <label><s:property value="pageInfo.currentPage" />/<s:property value="pageInfo.pageAmount" /></label>
        <s:if test="pageInfo.currentPage==1">
								<a>
							</s:if>
							<s:else>
								<a
									href="listAllShops?listType=<s:property value="listType" />&pageInfo.currentPage=<s:property value="pageInfo.currentPage-1" />
									&pageInfo.lineSize=<s:property value="pageInfo.lineSize" />">
							</s:else>上一页</a>
        <s:if test="pageInfo.currentPage>=pageInfo.pageAmount">
								<a>
							</s:if>
							<s:else>
								<a
									href="listAllShops?listType=<s:property value="listType" />&pageInfo.currentPage=<s:property value="pageInfo.currentPage+1" />
									&pageInfo.lineSize=<s:property value="pageInfo.lineSize" />">
							</s:else>下一页</a></div>
       <ul>
       <s:iterator value="#request.allShops">
         <li>
           <div class="img"><a href="shopDetail?shopId=<s:property value="id" />"><img src="<s:property value="logo" />" alt="" title="<s:property value="name" />" /></a></div>
           <div class="info">
             <dl>
               <dt><a href="shopDetail?shopId=<s:property value="id" />"><s:property value="name" /></a></dt>
               <dd>
                <p>地址：<s:property value="province" /><s:property value="city" /><s:property value="area" /><s:property value="stress" /></p>
                <p>电话：<s:property value="telNum" /></p>
               </dd>
             </dl>
             <a href="#" class="collectbtn" title="加入收藏"></a>
             <div class="xinlist">
               <div class="xin">口味：<span class="spanxin"><span class="num" style="width:<s:property value="tasteRank*16" />px;"></span></span></div>
               <div class="xin">环境：<span class="spanxin"><span class="num" style="width:<s:property value="environmentRank*16" />px;"></span></span></div>
               <div class="xin">服务：<span class="spanxin"><span class="num" style="width:<s:property value="serviceRank*16" />px;"></span></span></div>
               <p>共有<span><s:property value="productAmount" /></span>件商品可供兑换</p>
             </div>
           </div>
           <div class="clear"></div>
         </li>
         </s:iterator>
       </ul>
     </div>
     <form method="get" action="listAllShops" >
     <div class="page">
      共<font color="#FF0000"> <s:property value="pageInfo.pageAmount" /> </font>页
     &nbsp;
     <font color="#FF0000"><s:property value="pageInfo.amount" /></font>条记录&nbsp;&nbsp;
     <s:if test="pageInfo.currentPage==1">
								<a>
							</s:if>
							<s:else>
								<a
									href="listAllShops?listType=<s:property value="listType" />&pageInfo.currentPage=<s:property value="pageInfo.currentPage-1" />
									&pageInfo.lineSize=<s:property value="pageInfo.lineSize" />">
							</s:else>上一页</a>
     <s:if test="pageInfo.currentPage>1">
								<a
									href="listAllShops?listType=<s:property value="listType" />&pageInfo.currentPage=<s:property value="pageInfo.currentPage-1" />&pageInfo.lineSize=<s:property value="pageInfo.lineSize" />">
									<s:property
										value="pageInfo.currentPage-1" /></a></s:if>

							<a class="hover"><s:property value="pageInfo.currentPage" /></a>
							
							<s:if test="pageInfo.currentPage<=pageInfo.pageAmount-1">
								<a
									href="listAllShops?listType=<s:property value="listType" />&pageInfo.currentPage=<s:property value="pageInfo.currentPage+1" />&pageInfo.lineSize=<s:property value="pageInfo.lineSize" />">
									<s:property
										value="pageInfo.currentPage+1" /></a></s:if>
							<s:if test="pageInfo.currentPage<=pageInfo.pageAmount-2">
								<a
									href="listAllShops?listType=<s:property value="listType" />&pageInfo.currentPage=<s:property value="pageInfo.currentPage+2" />&pageInfo.lineSize=<s:property value="pageInfo.lineSize" />">
									<s:property
										value="pageInfo.currentPage+2" /></a></s:if>
     <s:if test="pageInfo.currentPage>=pageInfo.pageAmount">
								<a>
							</s:if>
							<s:else>
								<a
									href="listAllShops?listType=<s:property value="listType" />&pageInfo.currentPage=<s:property value="pageInfo.currentPage+1" />
									&pageInfo.lineSize=<s:property value="pageInfo.lineSize" />">
							</s:else>
							下一页</a>&nbsp;
							到第
							<input name="pageInfo.currentPage" type="text" class="text" />页
							<input type="hidden" name="pageInfo.lineSize" value="<s:property value="pageInfo.lineSize" />" />
							<input type="hidden" name="listType" value="<s:property value="listType" />" />
							<input type="submit" class="btn" value="确认" /></div></form>
    </div>
    <div id="exchange">      
      <h3><a href="#">热门排行</a></h3>
      <div class="body">
        <div class="tabs">
          <ul>
            <li class="current" tabindex="1">热门微商家</li>
            <li tabindex="2">最新微商家</li>
          </ul>
        </div>
        <div class="bodycontent bodycontent1">
          <ul>
          <s:iterator value="#application.hotShops" begin="0" end="9">
           <li>
             <div class="img"><a href="shopDetail?shopId=<s:property value="id" />"><img src="<s:property value="logo" />" alt="<s:property value="name" />" title="<s:property value="name" />" /></a></div>
             <div class="info">
               <h4><a href="shopDetail?shopId=<s:property value="id" />"><s:property value="profile" /></a></h4>
               <div class="price">共有<span>XX</span>件商品可供兑换</div>
             </div>
             <div class="clear"></div>
           </li>
           </s:iterator>
          </ul>
        </div>
        <div class="bodycontent bodycontent2 none">
          <ul>
           <s:iterator value="#application.newShops" begin="0" end="9">
           <li>
             <div class="img"><a href="shopDetail?shopId=<s:property value="id" />"><img src="<s:property value="logo" />" alt="<s:property value="name" />" title="<s:property value="name" />" /></a></div>
             <div class="info">
               <h4><a href="shopDetail?shopId=<s:property value="id" />"><s:property value="profile" /></a></h4>
               <div class="price">共有<span>XX</span>件商品可供兑换</div>
             </div>
             <div class="clear"></div>
           </li>
           </s:iterator>
          </ul>
        </div>
      </div>
      <div class="search">
        <h3>搜索微商城所有礼品</h3>
        <ul>
          <li><label>关键词：</label><input type="text" class="text" /></li>
          <li><label>&nbsp;&nbsp;价格：</label><input type="text" class="text short" /><span>到</span><input type="text" class="text short" /></li>
          <li class="btnli"><input type="button" class="searchbtn" value="" /></li>
        </ul>
      </div>
    </div> 
    <div class="clear"></div>
  </div>
</div>
<div id="footer">
 <div class="menu"><a href="#">关于微积分</a><span>|</span><a href="#">服务条款</a><span>|</span><a href="#">加盟合作</a><span>|</span><a href="#">广告服务</a><span>|</span><a href="#">客服中心</a><span>|</span><a href="#">意见反馈</a><span>|</span><a href="#">网站导航</a></div>
 <p><span>&copy;</span> 2009-2011 Wjifen.com All Right Reserved 京ICP备09045377号-2</p>
 <p>广州科信德科技发展有限公司 版权所有</p>
</div>
<div id="fullcontent"><div class="fullcontent"></div></div>
<script language="javascript" type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
<script language="javascript" type="text/javascript" src="js/default.js"></script>
</body>
</html>
<s:debug></s:debug>